<?php include 'session.php'?>
<?php include 'header.php'?>
<?php include 'country.php'?>
<?php include 'state.php'?>
<?php include 'addaddress.php'?>

<div id="Main">
    <div id="Content">
		<header class="row">
			<h2>Shipping Address</h2>
		</header>
		
		<form action="" method="post" class="row">
			<table>
				<tr>
					<td>First Name:</td>
					<td><input type="text" name="firstname"/></td>
				</tr>
				<tr>
					<td>Last Name:</td>
					<td><input type="text" name="lastname"/></td>
				</tr>
				<tr>
					<td>Address:</td>
					<td><input type="text" name="address"/></td>
				</tr>
				<tr>
					<td>City:</td>
					<td><input type="text" name="city" /></td>
				</tr>
				<tr>
					<td>Zipcode</td>
					<td><input type="text" name="zipcode" /></td>
				</tr>
				<tr>
					<td>State:</td>
					<td>
					<?php
						echo '<select name="state">';
						foreach($states as $k=>$s) {
							echo '<option value="'.$k.'">'.$s.'</option>';
						}
						echo '</select>';
					?>
					</td>
				</tr>
				<tr>
					<td>Country:</td>
					<td>
					<?php
						echo '<select name="country">';
						foreach ($countries as $k=>$s) {
							echo '<option value="'.$k.'">'.$s.'</option>';
						}
						echo '</select>';
					?>
					</td>
				</tr>
				<tr>
					<td>Phone:</td>
					<td><input type="text" name="phone" /></td>
				</tr>
			</table>
			<br/>
			<ul class="buttons">
				<li style="float:left"><input type="button" value="Back" onclick="javascript:history.go(-1);" class="button-secondary" /></li>
				<li style="float:left; margin-left:10px"><input type="submit" value="Next" name="submit" class="button-secondary" /></li>
			</ul>
			<br/>
		</form>
	</div>
<?php include 'footer.php'?>